Inspired by this. No avocados were harmed in the making of this challenge.
Hello I have challenge I need help juic an avocado so I need program to tell me how long to juic avocad for
Observe this ASCII art avocado:
######
# #
# #### #
# # p# #
## #### #
# #
######
This avocado consists of an exterior of #
s (specifically the first and last sequences of #
s on each line) and a pit (a shape of #
s in the avocado that does not touch the avocado exterior).
Through rigorous experiments on these ASCII art avocados I have discovered the following:
avocado juice in fluid ounces = number of spaces inside avocado but outside pit (the pit is marked with a p in the example) + 2 * number of spaces inside pit
time to juice avocado in minutes = 13 * number of spaces inside pit
For example, this avocado will take 26 (2 spaces inside pit * 13) minutes to juice and will give 23 (19 spaces inside avocado but outside pit + 2 * 2 spaces inside pit) fl oz of juice.
Challenge
Given an input of exactly one ASCII art avocado such as the one above that consists of only #
and whitespace, output the amount of time in minutes it will take to juice it and the amount of juice it will produce in any order.
You may assume that the input avocado will always have exactly one pit and both the avocado and the pit will always be closed. The pit and avocado will always be connected, and any subset of the pit will be connected as well. The avocado and the pit will always be convex. Note that the avocado exterior may be arbitrarily thick.
Sample Inputs and Outputs
######
# #
# #### #
# # # # -> 26 23
## #### #
# #
######
#######
# #
# ### ##
# # # # -> 26 35
# ## #
# #
##########
This is code-golf, so shortest code in bytes wins.