Let's use the common formula:
1/f = 1/i + 1/o, where
f: focal length, i: image distance, o: object distance
1/f = 1/28.7 + 1/6
1/f = 0.2015
f = 4.9625 cm
4.7m questions
6.1m answers