40/n = 28/22

what is n?

cross multiply

so 28 x n= 28n
and

40x22= 880

28n=880
divide by n on both sides
n= 31.42