solution for cost of tile
get change
and pending binary converter
solution for binary converter