You can find the perimeter by just counting the distance of every line segment all around the shape since they have vertical and horizontal slopes.
You need to isolate b on one side of the equation then divide both side by h finally move b on the other side of the equation by subtracting it from both sides of the equation and then you have what b equals to
The answer is 9 sorry if this is wrong