Let the percentage of 168X be A
Then the percentage of 188X =100−A
The formula for Calculating Average Atomic Mass
Average Atomic Mass = atomicmassofIisotope×its%abundance+atomicmassofIIisotope×its%abundance100
The average atomic mass of the given element = 16.2u
Then we have 16×A100+((100−A)×18)100=16.2
Or,1800−1620=18A−16A
180 = 2A
A=90
168X is 90% and is 188X is 10% (100-90 =10)