solve To and Fro