The average cost of Book A and Book B was $30. Book A cost twice as much as Book B. Find the cost of Book B.​