Take one rope and burn it at both ends. This will now take 30 minutes to burn.
At the same time, burn one end of the other rope.
After 30 minutes, the first rope has completed burning and the second rope has 30 minutes of burning left.
Now light the other end of the remaining rope, which will instead take 15 minutes to burn.
When it completes burning, that will be 45 minutes.