You have two ropes. Each take one hour to burn, but they burn at different rates. How can you measure 45 minutes using these two ropes and a match box.
Think about it for a moment.
Continue for the solution.