x varies directly as y and inversely as z. when x = 5, y =…