The problem is simply:
You have C cars and V vans, and parking spots of which X allows cars, Y allow vans, and Z allow either. How many ways could you park these vehicles? (Cars and vans are indistinguishable amongst themselves, parking spots are numbered.)
Is there a directly computable solution to this question (i.e. not involving sums or recursion)?
Work so far:
I have started by finding the correct count.
$\sum_{i=0}^X {X \choose i} {Z \choose X-i} {Y+Z-X+i \choose V}$
This puts some (i) cars in the car spots and the remainder in shared spots, for varying amounts of i and adds up for each choice of i. When i is specified, this is a directly computable combinatorics problem.
Assuming X intersection with Y is Z. X+Y-Z is the total number of potential spaces. If labellings of the parking spaces can be rearranged between types of vehicle allowed then (X+Y-Z)nCr(X-Z) is the potential car only spot numberings similarly for (Y-Z) but slightly less spaces to choose from so is (X+Y-Z-(X-Z))C(Y-Z) or (Y)nCr(Y-Z) and the remainder are forced to be in Z. So multiplying together our parking preset types have (X+Y-Z)nCr(X-Z) * (Y)nCr(Y-Z) choices. In X-Z each spot will develop 2 choices either a car or be empty so in total 2^(X-Z). Similarly for Y-Z spaces having 2^(Y-Z) potential van arrangements and in Z we have 3 options so is 3^Z. Since all intersections between the sets of spaces we have handled are empty sets the product of these is the number of potential car park states so together is,
(X+Y-Z)nCr(X-Z) * (Y)nCr(Y-Z) * 2^(X+Y-2*Z) * 3^Z
Unless Z was an independent category from X and Y in which case replace X-Z with X, Y-Z for Y, X+Y-Z for X+Y+Z and respective totals in the above.