Dimensions of Intersections, Exercise 2

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