Can you solve the below maths equation problem by replacing the question mark with the correct number?

Note: It has more than one solution.

Maths Problem With 2 Answer

40 or 96

Explanation:
Solution A :
Add the rhs of the last line to the current line
1 + 4 = 5
5 + 2 + 5 = 12
12 + 3 + 6 = 21
21 + 8 + 11 = 40

Solution B :
RHS = 1ST NUMBER + (1ST NUMBER * 2ND NUMBER)
1 + (1 x 4) = 5
2 + (2 x 5) = 12
3 + (3 x 6) = 21
8 + (8 x 11) = 96