What I have said is that you adding the result of B - G which is integer to the end of the string using string concatenation - the '+' sign. But in order to do that you have to turn the result to an string first:
print("your compatibillity is" + str(B-G) + "%...")
. Or just to use string formatting that was proposed already.