def calculate_y(x):
if x <= 2:
return 5 * x - 1
elif x == -3:
return x
else:
return 6 * x
x_values = [1, -3.238, 3, 15.7]
print(f"{'x':>8} {'y':>8}")
for x in x_values:
y = calculate_y(x)
print(f"{x:>8} {y:>8.3f}")