Solve culinary equation