Answer
48
Work Step by Step
Think of the two algebra books as 1 book. There are now 4 books to be arranged on a shelf, and there are 4! = 24 ways to arrange them. Since the two algebra books can change places (for example AB and BA), there are 2 * 24 = 48 ways to arrange the books.