Treatment for Capital loss on Franchise License

I bought a Franchise development license for 3 stores and never open any stores for business.  I paid 50k for the 3 licenses and was able to sell the 3 licenses to another franchisee for 20k and take a 30k loss. So I never opened the doors on this business.  How do I treat the 30k loss?
Thanks
Bruce