Firstly, the answer u got is the correct one.It may be possible that it is given wrong in the book you refferred.
To find empirical formula follow the given steps:
1. for element A- 75/75.8 = .989
2. for element B: 16/24.2 = 0.66
3. get the simplest ratio as
for A - .989/.66 = 1.5 approx.
for B - .66/.66 = 1(divide both of them by the smaller one of the two)
4. so we get the formula
A3B2