A) For equations to be parallel, they must have the same slope, which is m in the equations y=mx+b. So if we make m equal to 1, two equations are y=x+5 and y=x-1.
B) For equations to be perpendicular, they must have negative reciprocal slopes. So if one equation has a slope of 2, the other would have the slope of -1/2. So two equations are y=2x-1 and y=-1/2x.
Hope this helps