maximum allowed value of the speed in roller coaster is given as

now from kinematics we can say

here initial speed will be

acceleration is due to gravity

now we can use this to find the height



so maximum allowed height will be 20.4 m
Assuming motion is on a straight path, the result of two positive components of a vector would also be a positive value since both are having positive signs and directions. The direction would be the same with the motion as well. Hope this answers the question. Have a nice day.