Dimensions of Intersections, Exercise 3

Compute the box-counting dimension of the intersection of a Cantor middle-thirds set and a Cantor middle-halves set.
First assume both are subsets of 1-dimensional Euclidean space.
Then assume both are subsets of 2-dimensional Euclidean space.
 
Here are the solutions.