Mary started with 5 books and returned 3 so she had 5-3 = <<5-3=2>>2 books

She had 2 books and checked out 5 more books so she had 2+5 = <<2+5=7>>7 books

She now has 7 books but returned 2 so she has 7-2 = <<7-2=5>>5 books

She had 5 books and checked out 7 more books so she has 5+7 = <<5+7=12>>12 books checked out

# Answer

12
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Mary was working on a research paper and already had borrowed 5 books from the library.  3 books weren't helpful so she returned those and checked out 5 more books.  3 days later, she went back to the library and returned 2 of those books and checked out 7 more books.  How many books does Mary currently have checked out of the library?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
12
Mary was working on a research paper and already had borrowed 5 books from the library.  3 books weren't helpful so she returned those and checked out 5 more books.  3 days later, she went back to the library and returned 2 of those books and checked out 7 more books.  How many books does Mary currently have checked out of the library?
train