Dimensions of Unions, Exercise 1

Compute the box-counting dimension of this union of a Cantor set and a line segment.
What box side lengths should be used? What is the pattern relating N(r) and r?
 
Here are the solutions.