solve 0507