Catherine studied for 45 minutes for her science test. This was 20 minutes less than she studied for her algebra test. Write and sovle a subtraction equation to find how long she studied for the algebra test.