This yard is a rectangle of dimensions 20 ft x 30 ft. Meaning you have 2 sides of 20 feet and 2 sides of 30 feet. This would be 100 feet, but you are using 30 feet of a building instead of fence on one side. Therefore it is 100 feet - 30 feet. The final answer is 70 feet total.