Dimensions of Intersections, Exercise 4

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