Assuming your question asks:
x/40 + x/45 = 22. Solve for x.
First step when dealing with fractions is to find the common denominator. This is exactly the same if the question was 1/2 + 1/3. The common denominator (which would also be the least common multiple of the two numbers) you need to find would be 6. In this case, the least common multiple of 40 and 45 is 360. Hence:
x/40 + x/45 = 22
9x/360 + 8x/360 = 22
(9x + 8x) / 360 = 22
17x / 360 = 22
Multiply both sides by 360.
17x = 22*360
17x = 7920
Divide both sides by 17.
x = 7920/17
x = 465 15/17 or 465.8823529411...