public class Q232477260 {
public static void main(String[] args) {
for (int x = 1; x < 14; x++) {
for (int y = 1; y < 14; y++) {
for (int z = 1; z < 14; z++) {
if (x + y + z == 15 && 15 * x + 20 * y + 30 * z == 250) {
System.out.println("x = " + x + "; y = " + y + "; z = " + z);
}
}
}
}
}
}
x = 12; y = 2; z = 1