Allen and Beverly thought of the same number. Allen doubled the number and added 15 to the result. He got 51. Beverly performed the same operations with the number, but in reverse order. What did she get?