Rohan have some books and some tables.If he puts 9 books into each table he will have two tables left vacant. if he puts 6 books on each table he will have 3 books left over. find the number of books?

9, 18, 27, 36, 45

6, 12, 18, 24, 30, 36, 42

Yes, 45 books

well, let the number of books is x

so as after putting 9 books on a table 2 tables left vacant, number of table becomes (x/9+2)
again if we put 6 books on each of the table 3 remains, so now
books on the table+3= total books
I.e: (x/9+2)6+3=x
solution: x=45

45

45

45

Suppose there are B books and T tables

If he puts 9 books on each table he will have two tables left vacant.
B = 9(T-2)

If he put 6 books on each table he will have 3 books left over.
6T+3 = B

6T+3 = 9(T-2)
6T+3 = 9T-18
21 = 3T
7 = T

6T+3 = 6(7)+3 = 42+3 = 45 = B

So there are 7 tables and 45 books.

Checking: Putting 9 books on 5 tables takes all 45 books,
and there will be 7-5 = 2 tables with no books.

Putting 6 books on all 7 tables takes 42 books,
and there will be 45-42 = 3 books left over.