How can I round up/down any number to one of these- 0, 50, 100, 150,200,250,300?

This is difficult to explain so here is example- number 49 should be 0, 64 should be 50, 140 should be 100 and so on.