Answer:
Written in C++
#include <iostream>
#include<cmath>
using namespace std;
int main(){
  int weight1, weight2, diff;
  cout<<"Employees Weight: ";
  cin>>weight1;
  cout<<"Employers Weight: ";
  cin>>weight2;
  diff = abs(weight1 - weight2);
  float pay = round(sqrt(diff));
  cout<<pay;
  return 0;
}
Explanation:
I've added the source file as an attachment where I used comments as explanation