Mr. A's favorite book is 182 pages less than three times Mr.M's favorite book. If both books have the same number of pages, how many pages are in Mr.A's favorite book?