Ravi cycles 3 km towards the east and takes the first right turn and cycles for another 5km to point A. From point A he takes a left turn and cycles 7 km to point B, after covering another 4 km he rests for a while. How much distance has Ravi covered from point A till the time he stops ?