For this, you need to know a concept in Trigonometry called "Law of Sines". This states that the ratio of any side of a triangle to the sine of the angle opposite is equal for all cases in that triangle.
1st Avenue would be more difficult because it’s rise and run is for every one foot forward it is 3 feet up. Meanwhile avenue 16th would start at (3,1) and the rise and run would be for every 3 feet it would go up 1 foot.