A small air bubble is trapped inside a transparent cube of side 12 cm. When viewed from one of the vertical faces, the bubble appears to be at 5 cm from it. When viewed from opposite face, it appears at 3 cm from it.