# Maths Magic

**Algebra**Level 2

There are some coloured crayons in a box. The box contains R red colours, B blue colours and G green colours.

When I carry out the following steps-

{Multiply the number of red colours, R by 2, add 1, then multiply result by 5, add the number of blue colours, B, then multiply result by 10, add the number of green colours, G and then subtract 50 from result},

I get 869 as the final answer,

AND

The box contains no more than 9 crayons of a same colour (R<10, B<10, G<10)

Find the total number of crayons in that box, R+ B+ G= ?