I would appreciate if someone helps with this problem. Thanks.

Tom and Jerry use their calculators to calculate cos x. Tom enters x as x degrees, while Jerry enters x radians. Tom gets an answer y, while Jerry gets the value -y. Let x be the smallest positive value for which this happens. Find x.