For this, there is two rules. The common slope-intercept form is y=ax + b. For parallel, b can change, but a, or the slope, can't change. But for perpendicular, the a should be -1/a, where the answer for times the original equation, or a, and the second equation, or -1/a, is -1. To prove these two rules, you can graph it using random numbers but follow these two rules. if you have any part that don't understand for this answer, feel free to ask in the "Ask for details" section.
1) The outcomes for rolling two dice, the sample space, is as follows:
(1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6)
(2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (2, 6)
(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6)
(4, 1), (4, 2), (4, 3), (4, 4), (4, 5), (4, 6)
(5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (5, 6)
(6, 1), (6, 2), (6, 3), (6, 4), (6, 5), (6, 6)
There are 36 outcomes in the sample space.
2) The ways to roll an odd sum when rolling two dice are:
(1, 2), (1, 4), (1, 6), (2, 1), (2, 3), (2, 5), (3, 2), (3, 4), (3, 6), (4, 1), (4, 3), (4, 5), (5, 2), (5, 4), (5, 6), (6, 1), (6, 3), (6, 5). There are 18 outcomes in this event.
3) The probability of rolling an odd sum is 18/36 = 1/2 = 0.5