How would I solve this problem?

@Mathias_Westerdahl, did you encounter similar problems when you experimented with slopes, and if so, what was your solution?