Let
be the number of non-fiction books. We deduce that the number of fiction books is
, since they are twice as much.
Since the difference between the two numbers is 17, we have

So, Henry has 17 non-fictional and 34 fictional books, for a total of 51 books.