Ok
BF = 22%
so 22% of his total weight is BF
We need to take 22% away from the total
240 x 0.78 = 187.2
Multiplying ur LBM by 15 is a good shot at maintanance calories required while dieting
If trying to gain I would add 500-1000 calories on top of that depending on a few factors (mainly are you using gear)